import { _decorator, Component, log, Node } from "cc";
import { EDITOR } from "cc/env";
const { ccclass, disallowMultiple, menu, executeInEditMode, icon, property } = _decorator;

/**
 *
 * UIPlugin
 * zhoufamily
 * Mon Nov 10 2025 17:45:20 GMT+0800 (中国标准时间)
 * desc
 */
@ccclass("UIPlugin")
@disallowMultiple(true)
@menu("1sPlugins/UIPlugin")
@executeInEditMode(true)
@icon("icon.png")
export class UIPlugin extends Component {
    // ------------------ 生命周期 begin ------------------

    onLoad() {
        if (EDITOR) {
            log("UIPlugin::onLoad");
        }
    }

    update(deltaTime: number) {}

    onDestroy() {}

    protected onEnable(): void {
        if (EDITOR) {
            log("UIPlugin::onEnable");
        }
    }

    protected onDisable(): void {
        if (EDITOR) {
            log("UIPlugin::onDisable");
        }
    }

    // ------------------- CUSTOM -------------------
}
